<?php $this->load->view('_inc/header_popup')?>
<script>
    $(document).ready(function(){
        $('#isemestre').mask('9/9999')
        $('#ihora').mask('99:99')
    });
</script>

<h1>Nova Turma</h1>
<?php echo form_open('turma/editando'); ?>
<table>
    <tr><td><?php echo form_label('Letra:','iletra'); echo form_input('letra',$turma->letra,'id="iletra" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Professor:','iprof'); echo form_dropdown('professsor',$professores,$turma->professor_id,'id="iprof" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Disciplina:','idisc'); echo form_dropdown('disciplina',$disciplinas,$turma->disciplina_id,'id="idisc" class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Semestre:','isemestre'); echo form_input('semestre',$turma->semestre,'id="isemestre" autofocus class=required'); ?></td></tr>
    <tr><td><?php echo form_label('Horário:','ihora'); echo form_input('horario',$turma->horario,'id="ihora" class=required'); ?></td></tr>
    <tr>
        <td>
            <?php echo form_submit('','Salvar') ?>
            <?php echo form_button('','Cancelar', 'class=cancela')?>
        </td>
    </tr>
</table>
<?php echo form_close(); ?>